Custom Run Ide Task
Runs the custom IDE instance using the currently selected IntelliJ Platform with the built plugin loaded. It directly extends the JavaExec Gradle task, which allows for an extensive configuration (system properties, memory management, etc.).
This task class also inherits from CustomIntelliJPlatformVersionAware, which makes it possible to create runIde-like tasks using custom IntelliJ Platform versions:
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import org.jetbrains.intellij.platform.gradle.tasks.CustomRunIdeTask
tasks {
val runPhpStorm by registering(CustomRunIdeTask::class) {
type = IntelliJPlatformType.PhpStorm
version = "2023.2.2"
}
val runLocalIde by registering(CustomRunIdeTask::class) {
localPath = file("/Users/hsz/Applications/Android Studio.app")
}
}Properties
Enables auto-reload of dynamic plugins. Dynamic plugin will be reloaded automatically when its content is modified.
The path to the coroutines Java Agent file.
Holds the Configurations.INTELLIJ_PLATFORM configuration with the IntelliJ Platform dependency added. It should not be directly accessed.
Holds the Configurations.INTELLIJ_PLATFORM_PLUGIN_DEPENDENCY configuration with the optional custom IntelliJ Platform plugins dependencies added. It should not be directly accessed.
Provides access to the IntelliJ Platform dependency artifact path.
Provides information about the IntelliJ Platform product. The information is retrieved from the product-info.json file in the IntelliJ Platform directory.
An architecture of the Java Runtime currently used for running Gradle.
Java Runtime parent directory.
A custom JavaLauncher instance configured with the resolved runtimeDirectory.
Metadata object of the Java Runtime currently used for running Gradle.
A configuration directory located within the sandboxDirectory.
The directory containing content read and produced by the running IDE.
A log directory located within the sandboxDirectory.
A plugins directory located within the sandboxDirectory.
Represents the suffix used i.e., for test-related tasks.
A system directory located within the sandboxDirectory.
Path to a properties file which will be used to configure the frontend process if the IDE is started in Split Mode.
Specifies in which part of the product the developed plugin should be installed.
An input property to configure the type of the custom IntelliJ Platform.
Functions
Adds plugins to the custom IntelliJ Platform using the specified configuration.
Validates that the resolved IntelliJ Platform is supported by checking against the minimal supported IntelliJ Platform version.
Validates that the resolved IntelliJ Platform supports Split Mode.